package com.scsj.supermarket.view.activity.ordermodel;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.scsj.supermarket.R;
import com.scsj.supermarket.adapter.InterFlowAdapter;
import com.scsj.supermarket.bean.InterFlowBean;
import com.scsj.supermarket.view.activity.baseactivitymodel.BaseActivity;

import java.util.ArrayList;
import java.util.List;

/**
 *物流信息
 */
public class InterFlowActivity extends BaseActivity{

    private RecyclerView flow_rv;
    private List<InterFlowBean>flowBeans;
    private InterFlowAdapter adapter;

    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_interflow_layout);
        initToolbar();
        setToolbarTitle("物流信息");
        hasBack(true);
    }

    @Override
    protected void initView() {
        flow_rv = findViewById(R.id.flow_rv);
        flow_rv.setLayoutManager(new LinearLayoutManager(this));
        flow_rv.setNestedScrollingEnabled(false);

    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {
        flowBeans = new ArrayList<>();
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));
        flowBeans.add(new InterFlowBean("您的订单在郑州市已经签收，请联系快递西欧阿各哥，电话41543","201-11-12 10:20:20",0));

        adapter = new InterFlowAdapter(flowBeans);
        flow_rv.setAdapter(adapter);
    }
}
